    <html>

    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="https://www.baidu.com"></script>
    <script>
       function test(){
           $.get("http://weikangqq.imwork.net:33584/main/login?phone=15972132723&pwd=123", function(result){
               console.log(result)
           });

       }

       function test2(){
           $.get("http://weikangqq.imwork.net:33584/main/test", function(result){
               console.log(result)
           });

       }

       function setCookie(name,value)
       {
           var Days = 30;
           var exp = new Date();
           exp.setTime(exp.getTime() + Days*24*60*60*1000);
           document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();

       }

    </script>

    <body>

    <button onclick="test()">SSO登录</button>



    <button onclick="test2()">查看SSO-cookie</button>

    <button onclick="test2()">查看APP-cookie</button>

    <button onclick="setCookie('zzz','xxx')">HTML设置cookie</button>
    </body>

    </html>
